import { Column, Entity, PrimaryColumn } from 'typeorm';

@Entity({ name: 'log_list' })
export class LogListEntity{
    @PrimaryColumn('varchar', { name: 'id', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    id: string;

    @Column({ name: 'type', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    type: string;

    @Column({ name: 'device_sn', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    deviceSn: string;

    @Column({ name: 'job_id', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    jobId: string;

    @Column({ name: 'wayline_id', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    waylineId: string;

    @Column({ name: 'user_id', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    userId: string;

    @Column({ name: 'user_name', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    userName: string;

    @Column({ name: 'user_ip', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    userIp: string;

    @Column('bigint', { name: 'time' })
    time: number;

}
